﻿using System.Globalization;
using System.Web.Mvc;
using Globsite.Globalization.Mvc.DbResources;

namespace Globsite.Globalization.Mvc
{
    public static class ExtensionMethods
    {
        #region HtmlHelper

        public static string GetString(this HtmlHelper htmlHelper, string resourceKey)
        {
            return DbRes.GetString(resourceKey);
        }

        public static string GetString(this HtmlHelper htmlHelper, string resourceKey, string resourceSet)
        {
            return DbRes.GetString(resourceKey, resourceSet);
        }

        public static string GetString(this HtmlHelper htmlHelper, string resourceKey, string resourceSet, string cultureCode)
        {
            return DbRes.GetString(resourceKey, resourceSet, cultureCode);
        }

        public static string GetString(this HtmlHelper htmlHelper, string resourceKey, string resourceSet, CultureInfo cultureInfo)
        {
            return DbRes.GetString(resourceKey, resourceSet, cultureInfo);
        }

        #endregion
    }
}
